package com.zhoutao123.hephaestus.service;

import com.zhoutao123.hephaestus.object.bussiness.VSysResources;
import com.zhoutao123.hephaestus.object.transport.PageBean;

import java.io.FileInputStream;
import java.io.IOException;

public interface UploadService {

    /**
     * 上传文件到七牛云
     *
     * @param file
     * @param key
     * @return
     * @throws IOException
     */
    String uploadFileToQiNiuCloud(FileInputStream file, String key) throws IOException;

    /**
     * 保存上传文件持久层记录
     *
     * @param fileName
     * @param filePath
     * @param fileSize
     */
    void saveUploadFileRecord(String fileName, String filePath, Integer fileSize);

    /**
     * 获取上传文件资源信息
     *
     * @param pageBean
     * @return
     */
    VSysResources getFileList(PageBean pageBean);
}
